Repository navigation
Conversation
…horsAndSize fix(layershell): 解耦 trySetAnchorsAndSize 中锚点与尺寸的更新 1. Move set_anchor() outside the anchorsSizeConflict() guard so anchors are always sent to the compositor regardless of size validity. 2. Only skip set_size() when anchorsSizeConflict() returns true, keeping size protection unchanged. When m_requestSize is 0x0 (initial state before QML binding evaluation), anchorsSizeConflict() returned true and caused set_anchor() to be skipped as well, leaving the dock unanchored from the screen edge. This made the taskbar appear floating after new user login on Treeland/Wayland. 当 m_requestSize 为 0x0(QML 绑定求值前的初始状态)时, anchorsSizeConflict() 返回 true 导致 set_anchor() 也被跳过, 任务栏锚点无法修正,新用户登录后任务栏悬空展示。 将 set_anchor() 移出守卫始终调用,仅对 set_size() 保留守卫。 PMS: BUG-295199 Log: 修复新用户登录后任务栏悬空展示问题 Influence: Treeland/Wayland 环境下 layer shell 锚点设置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.